package com.myaxuan.mapper.permissions;



import com.myaxuan.entity.permissions.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Mapper
@Repository
public interface RoleMapper {
    /**
     * 删除
     * @param roleId
     * @return
     */
    int deleteByPrimaryKey(@Param("roleId") String roleId);

    /**
     * 新增
     * @param record
     * @return
     */
    int insertSelective(Role record);

    /**
     * 修改
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(Role record);

    /**
     * 分页查询
     * @return
     */
    List<Role> findAll(@Param("page")Integer page ,@Param("limit")Integer limit);

    /**
     * 查询
     * @param id
     * @return
     */
    Role selectByPrimaryKey(String id);
}